<?php

class Users_LoginInputView extends SrsUsersBaseView
{
	public function executeHtml(AgaviRequestDataHolder $rd)
	{
		if ($this->container->hasAttributeNamespace('org.agavi.controller.forwards.login'))
		{
			$this->user->setAttribute('redirect', $this->context->getRequest()->getUrl(), 'srs.login');
		}
		else
		{
			$this->user->removeAttribute('redirect', 'srs.login');
		}

		$this->setupHtml($rd);

		$this->setAttribute('email', $rd->getParameter('email', ''));
	}
}